import java.math.BigDecimal;
import java.math.RoundingMode;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;

public class Test {
    public static void main(String[] args) {
        BigDecimal num1 = new BigDecimal("2.34");
        BigDecimal num2 = new BigDecimal("1.79");
        BigDecimal vet = num1.add(num2);
        BigDecimal vet2 = num1.divide(num2,4, RoundingMode.HALF_UP);
        System.out.println(vet);
        System.out.println(vet2);

    }
    public static void main3(String[] args) {
        BigDecimal i = new BigDecimal(9223372036854775807l);
        System.out.println(i);
        BigDecimal j = new BigDecimal("9223372036854775807111");
        System.out.println(j);

        System.out.println(Long.MAX_VALUE);
    }
    public static void main2(String[] args) {
        LocalDateTime i = LocalDateTime.now();
        LocalDateTime j = i.plusDays(1);
        System.out.println(j);
        LocalDateTime k = i.minusDays(1);
        System.out.println(k);
    }
    public static void main1(String[] args) {
        LocalDateTime l = LocalDateTime.now();

        LocalDate arr = LocalDate.now();
        System.out.println(l);
        System.out.println(arr);
        System.out.println("======================");



        int year = l.getYear();
        Month month = l.getMonth();
        System.out.println(year);
        System.out.println(month);


        int day = l.getDayOfYear();
        System.out.println(day);

        System.out.println("本周周几"+ l.getDayOfWeek().getValue());
        System.out.println("本月第几天" + l.getDayOfMonth());
        System.out.println("本年第几天" + l.getDayOfYear());

    }

}
